package lab02.Test05;

public class Cube {
    //1、属性
    double length;
    double high;
    double width;


    // 方法
    public double Volume() {
        return length * high* width ;
    }

    // 构造方法
     Cube() {
    }

    Cube(double length, double width, double high) {
        this.length = length;
        this.width = width;
        this.high = high;
    }

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }

    public double getWidth() {
        return width;
    }

    public void setWidth(double width) {
        this.width = width;
    }

    public double getHigh() {
        return high;
    }

    public void setHigh(double high) {
        this.high = high;
    }
}
